package com.jiantong.lawEnforcing.enums;

/**
 * 文书中各个记录的类型枚举类EvidenceInventory
 * Created by mz03 on 2017/8/8.
 */
public enum RecordType {

    //调查取证
    INQUIRY_RECORD(101,"询问笔录"),//
    INQUEST_RECORD(102,"现场勘验记录"),//
    SAMPLING_SURVEY(103,"抽样取证通知书"),//
    CPQRTZS(104,"产品确认通知书"),//
    EVIDENCE_INVENTORY(105,"证据登记保存清单"),//
    GOODS_DISPOSE(106,"登记保存物品处理通知书"),//
    CLOSE_DOWN(107,"查封扣押决定书"),//
    CLOSE_DOWN_RECORD(108,"查封扣押现场笔录"),//

    //案件处理:
    RELIEVE_CLOSE_DOWN(201,"解除查封扣押决定书"), // 未完善
    HANDLING_SUGGESTION(202,"案件处理意见书"),// 未完善
    CORRECT(204,"责令改正通知书"),//

    //告知:
    PUNISHMENT_NOTIFICATION_1(301,"行政处罚事先告知书(不听证)"),//
    PUNISHMENT_NOTIFICATION_2(302,"行政处罚事先告知书(需听证)"),//

    //陈述申辩:

    //	听证:
    HEARINGS_INFORM(501,"行政处罚听证会通知书"),//
    HEARINGS_RECORD(502,"听证笔录"),//未完善
    HEARINGS_WRIT(503,"行政处罚听证会报告书"),//

    //处罚决定:
    PENALTY_REVIEW(601,"行政处罚决定审批表"),//
    PENALTY_CERTAIN(602,"行政处罚决定书"),

    //送达回证:
    PROOF_OF_SERVICE(701,"执法文书送达回证"),

    //结案:
    FINAL_ADDRESS(801,"行政处罚结案报告"),

    //立卷:

    //其它:
    HANDLING_CONFISCATION_ARTICLES(1001,"罚没物品处理记录"),
    LXXZCFJDCGS(1002,"履行行政处罚决定催告书"),
    QXZXSQS(1003,"强行执行申请书"),
    AJYSH(1004,"案件移送函"),
    XWTZS(1005,"询问通知书"),
    YQFKPZS(1006,"延期(分期)罚款批准书"),
    XZQZCSSPB(1007,"行政强制措施审批表");



    private final Integer value;
    private final String description;

    RecordType(Integer value, String description) {
        this.value = value;
        this.description = description;
    }

    public static RecordType from(Integer value) {
        for (RecordType recordType : RecordType.values()) {
            Integer type = recordType.value();
            if ((type-value) == 0) {
                return recordType;
            }
        }
        return null;
    }

    public Integer value() {
        return this.value;
    }

    @Override
    public String toString() {
        return description;
    }
}
